<template>
  <div class="bottom-bar">
    <div>客服</div>
    <div>店铺</div>
    <div>收藏</div>
    <div class="addCar">加入购物车</div>
    <div class="buy" @click="buy">购买</div>
  </div>
</template>

<script>
  export default {
    data() {
      return {

      }
    },
    methods:{
      buy(){
        this.$toast.showToast("购买模块",1000);
      }
    }
  }
</script>

<style scoped="scoped">
  .bottom-bar {
    height: 49px;
    background-color: white;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  }

  .bottom-bar>div {
    flex-grow: 1;
    text-align: center;
    line-height: 49px;
  }

  .addCar {
    background-color: yellow;
    height: 100%;
    flex-grow: 2;
  }

  .buy {
    background-color: var(--color-tint);
    color: white;
    height: 100%;
  }
</style>
